<?php
class MHDEV_View_Helper_IsUserOnline extends Zend_View_Helper_Abstract
{
    public function IsUserOnline($uid)
    {
    	// var
    	$status			= false;
    	
		// db
		$userOnline		= new UserOnline();
		
		if($uid > 0)
		{
			// query
			$query = $userOnline->fetchAll('user_uid = ' . intval($uid));
			
			if($query->count() > 0)
			{
				$status = true;
			}
		}
		
		return $status;
    }
}
?>